package com.xcity.pomelo.response;

import java.util.Collections;
import java.util.List;

import com.xcity.game.news.News;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class NewsResponse extends Response {
	
	protected List<News> news;
	
	public NewsResponse(int serial, List<News> news) {
		super(serial);
		this.news = news != null ? news : Collections.emptyList();
	}

	public List<News> getNews() {
		return news;
	}

	public void setNews(List<News> news) {
		this.news = news;
	}

}
